<table class="title" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('rma_lang.lbl_rma_info')?></td>
  </tr>
</table>
<table class="list" align="center" cellspacing="1" cellpadding="5">
  <tr class="list_header">
    <td><?php echo Kohana::lang('rma_lang.lbl_rma_code')?></td>
    <td><?php echo Kohana::lang('rma_lang.lbl_date')?></td>
    <td><?php echo Kohana::lang('customer_lang.lbl_name')?></td>
    <td><?php echo Kohana::lang('rma_lang.lbl_status')?></td>    
  </tr>
  <?php for($i=0;$i<count($list_rma);$i++){ ?>
  <tr class="row<?php if($i%2 == 0) echo 2 ?>">
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_rma/edit/<?php echo $list_rma[$i]['rma_id']?>"><?php echo $list_rma[$i]['rma_code']?></a></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_rma/edit/<?php echo $list_rma[$i]['rma_id']?>"><?php echo $list_rma[$i]['rma_date']?></a></td>
    <td><a href="<?php echo $this->site['base_url']?>admin_rma/edit/<?php echo $list_rma[$i]['rma_id']?>"><?php echo $list_rma[$i]['billing_firstname']?> <?php echo $list_rma[$i]['billing_lastname']?></a></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_rma/edit/<?php echo $list_rma[$i]['rma_id']?>">
	<?php if($list_rma[$i]['rma_status'] == 1)
			echo Kohana::lang('rma_lang.lbl_pending');
		  elseif($list_rma[$i]['rma_status'] == 2)
		  	echo Kohana::lang('rma_lang.lbl_accepted');
		  elseif($list_rma[$i]['rma_status'] == 3)
		  	echo Kohana::lang('rma_lang.lbl_reject');
	?>
    </a></td>
  </tr>
  <?php } ?>
</table>